// 定义API的基础URL部分
const API_BASE_URL = 'http://localhost:9090';

//添加dish
const DISH_ADDDISH_ENDPOINT = '/dish/addDish';
const DISH_DELETEDISH_ENDPOINT = '/dish/deleteDish';

//登录
const LOGIN_ENDPOINT = '/user/login';

//注册
const register_endpoint= '/user/register';


const dish_selectall_endpoint= '/dish/selectAll';
const dish_selectById_endpoint= '/dish/selectById';
const dish_updateDish_endpoint= '/dish/updateDish';
const dish_addDish_endpoint= '/dish/addDish';
const dish_selectAll_endpoint= '/dish/selectAll';


// const dish_selectAll_endpoint= '/dish/selectAll';

export function getSelectAllUrl() {
  return `${API_BASE_URL}${dish_selectAll_endpoint}`;
}
export function getDishAddDishUrl() {
  return `${API_BASE_URL}${dish_addDish_endpoint}`;
}

export function getDishUpdateDishUrl() {
  return `${API_BASE_URL}${dish_updateDish_endpoint}`;
}

export function getDishSelectByIdUrl() {
  return `${API_BASE_URL}${dish_selectById_endpoint}`;
}

export function getDishSelectAllUrl() {
  return `${API_BASE_URL}${dish_selectall_endpoint}`;
}

export function getAddDishUrl() {
  return `${API_BASE_URL}${DISH_ADDDISH_ENDPOINT}`;
}

export function getLoginUrl() {
  return `${API_BASE_URL}${LOGIN_ENDPOINT}`;
}

export function getDishDeleteUrl() {
  return `${API_BASE_URL}${DISH_DELETEDISH_ENDPOINT}`;
}

export function getRegisterUrl() {
  return `${API_BASE_URL}${register_endpoint}`;
}



